package com.drcoffee.drcoffeemall.controller;

import com.drcoffee.drcoffeemall.entry.FAQ;
import com.drcoffee.drcoffeemall.service.FAQService;
import com.drcoffee.drcoffeemall.service.VideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 常见问题
 *
 * @author ShiHao Zhou
 */
@RestController
@RequestMapping("/faq")
public class FAQController {
    @Autowired
    FAQService faqService;

    @GetMapping("/getFAQ")
    public Map<String, Object> getFAQ(@RequestParam String language, @RequestParam(required = false) Integer machine_id, @RequestParam String search) {
        return faqService.getFAQ(language, machine_id, search);
    }

}
